import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
import { saveStore } from '@/utils/util'
// 用来存储数据
const state = {
  smartSearchValue: "",
}
// 操作数据
const mutations = {
  SET_smartSearchValue(state, payload) {
    state.smartSearchValue = payload
    saveStore()
  },
}
// 新建并暴露store
export default {
  namespaced: true,
  state,
  mutations,
}
